package com.kou.backend.resposne.log;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 登录日志列表返参
 *
 * @author: Kou
 * @since: 2023/9/2 14:05
 */
@Data
public class LogLoginListResponseDTO {
    /**
     * ip地址
     */
    @Schema(name = "ipAddress", description = "ip地址", required = true)
    private String ipAddress;

    /**
     * 用户账号
     */
    @Schema(name = "userAccount", description = "用户账号", required = true)
    private String userAccount;

    /**
     * 登录状态
     */
    @Schema(name = "status", description = "登录状态", required = true)
    private String status;

    /**
     * 浏览器
     */
    @Schema(name = "browserType", description = "浏览器", required = true)
    private String browserType;

    /**
     * 操作系统
     */
    @Schema(name = "systemType", description = "操作系统", required = true)
    private String systemType;

    /**
     * 登录时间
     */
    @Schema(name = "loginTime", description = "登录时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;
}
